﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace FB.admin
{
    public partial class AccessPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnLogin_Click(object sender, EventArgs e)
        {
            if (Membership.ValidateUser(txtUsername.Text, txtPwd.Text))
            {
                FormsAuthentication.SetAuthCookie(txtUsername.Text, true);
                Response.Redirect("/admin/AdminIndex.aspx");
            }
        }
    }
}